//牛客 WY33 计算糖果
//思路：题中可以使用不同方式算出B，我们只需要计算两次，若两次的值不相等就说明错误了


#include <iostream>
using namespace std;

int main()
{
    int a = 0, b = 0, c = 0, d = 0;
    cin >> a >> b >> c >> d;

    int A = (a+c) /2;
    int B1 = (b+d) / 2;
    int B2 = (c-a) / 2;
    int C = (d-b) / 2;

    if(B1 != B2)
        cout << "No" << endl;
    else
        cout << A << " " << B1 << " " << C << " " << endl;

    return 0;
}